﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IPagedList<JLL.China.Model.News>>" %>
<%@ Import Namespace="JLL.China.Web.Libraries" %>
<%@ Import Namespace="JLL.China.Model" %>
    
    <div id="content-table-inner">
    <div id="pending-post-property-request">
        <!--  start product-table ..................................................................................... -->
        <form id="mainform" class="list_item_form" method="post" action="">
        <table  border="0" width="100%" cellpadding="0" cellspacing="0"  id="product-table">
            
           <tr>
                <th class="table-header-check">
                    <a id="toggle-all"></a>
                </th>
                <th class="table-header-repeat line-left minwidth-1">
                    <a href="">Title</a>
                </th>
                <th class="table-header-repeat line-left minwidth-1">
                    <a href="">Details</a>
                </th>
                 <th class="table-header-repeat line-left">
                    <a href="">Short description</a>
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Status</a>
                </th>
                <th class="table-header-options line-left">
                    <a href="">Options</a>
                </th>
            </tr>
            <!--  end product-table................................... -->
            <% foreach (var item in Model)
               {%>
            <tr>
                <td valign="top" align="center">
               
                    <input name="selected" type="checkbox" value="<%=item.NewsId%>" />
                </td>
                <td align="left" valign="top"  style="padding-left:8px">
                    <%--<a class="thumbnail">
                        <img src="<%=Url.Content("~/")%>News/ShowThumbnail/<%=item.NewsId%>" /></a>--%>
                    <h4 style="font-size: 14px;line-height: 16px;width: 400px">
                        <%=item.Title%>
                        </h4>    
                </td>
                <td valign="top" style="padding-left: 20px" >
                    <%-- <span class="h4">
                        <%=item.Title%></span> <br /> <br />
                       <div class="date_div">
                        <br />
                        <small>Created by: Admin
                            <br />
                            Create date :
                            <%=item.DateCreated%>
                        </small><small></small>
                    </div>    --%>
                    Created by  : <%= item.CreatedBy%><br /><br />
                    Created on  : <%= item.DateCreated.ToString("dd-MMM-yyyy hh:mm tt")%><br /><br />
                    <%if (item.DateUpdated != null )
                      { %>
                        Updated by  : <%= item.UpdatedBy%><br /><br />
                        Updated on  : <%= item.DateUpdated.Value.ToString("dd-MMM-yyyy hh:mm tt")%><br /><br /> 
                    <% } %>
                        
                </td>
                <td style="padding-left: 20px" valign="top">
                      <div class="comment more" >
                          <%=item.Content%>
                      </div>
                 <%--   <h4 style="font-size: 12px;line-height: 16px;width: 200px"> <%=item.Summary%></h4>--%>
                </td>
                <td valign="top"style="padding-left: 20px">
                   <%=item.Status ? "Active":"Inactive"%>
                </td>
               
                <td class="options-width" valign="top" >
                <div>
                    <a href="<%=Url.Content("~/")%><%=ViewData["now_controller"]%>Step1/<%=item.NewsId %>"     title="View / Edit" class="info-tooltip">
                        <img id="detail-icon-img" src="<%=Url.Content("~/Content/images/")%>File_edit.png"  style="width: 25px; margin-left: 4px;"/>
                    </a>
                    <br/>  <br/>
                        <a href="<%=Url.Content("~/")%><%=ViewData["now_controller"]%>Delete/<%=item.NewsId %>"
                            title="Delete" class=" info-tooltip remove-btn-ajax">
                          

                            <img id="Img1" src="<%= Url.Content("~/Content/images/") %>Close.png" style="width: 24px;"/> 
                        </a>
                           <br/> 
                          <br/> 
                         
                   <a href="<%=Url.Content("~/")%><%=ViewData["now_controller"]%>ChangeStatus/<%=item.NewsId %>?status=<%=item.Status %>"
                        title="Change status" class=" info-tooltip" title="Change Status">
                       <img id="Img2" src="<%=Url.Content("~/Content/images/")%>Star_full.png" style="width: 28px;" />

                   </a>
                  <%--<%= Html.ActionLink(" ",  "ChangeStatus", new { id = item.NewsId, status = item.Status }, new { @title = "Change Status", @class = "star" })%>--%>
                    </div>
                </td>
            </tr>
            <%} %>
        </table>
        <!--  start actions-box ............................................... -->
        <div id="actions-box">
            <a href="" class="iconaction icon-cog"> </a>
            <a href="" class="action-slider"></a>
            <div id="actions-box-slider">
                <a class="iconaction icon-ok-circle"/>
                <%= Html.ActionLink("Active", "BulkProcess/Active", new {}, new { @title = "Set selected status to active", @class = "action-edit action-invoke info-tooltip" })%>
                <a class="iconaction  icon-minus-sign"/>
                <%= Html.ActionLink("Inactive", "BulkProcess/Inactive", new {}, new { @title = "Set selected status to inactive", @class = "action-edit action-invoke info-tooltip" })%>
                              
                               <a class="iconaction icon-trash "> </a>
                <%= Html.ActionLink("Delete", "BulkProcess/Delete", new {}, new { @title = "Delete selected", @class = "action-edit  action-invoke-removed info-tooltip " })%>
            
               
            </div>
            <div class="clear">
            </div>
        </div>
        <!-- end actions-box........... -->
         <%Html.RenderPartial("PerPage", ViewData);%>
        <!--  start paging..................................................... -->
        <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
            <tr>
                <td class="page-cell">
                    <div class="pager">
                        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount) %>
                    </div>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                   
                </td>
            </tr>
        </table>
        <!--  end paging................ -->
        </form>
        <div class="clear">
        </div>
    </div>
    <!-- end pending-post-property-request -->
</div>

